#ifndef __DEF_H_
#define __DEF_H_

#include <string.h>
#include <stddef.h>
#include <stdlib.h>

#ifndef STR_EMPTY
#define STR_EMPTY(str) ((str == NULL) || (str[0] == '\0'))
#endif

#ifndef STR_NOT_EMPTY
#define STR_NOT_EMPTY(str) ((str != NULL) && (str[0] != '\0'))
#endif

#ifndef UNUSED
#define UNUSED(x) (void)x
#endif

#ifndef ARRSIZE
#define ARRSIZE(x) (sizeof(x)/sizeof((x)[0]))
#endif

#define my_free free
#define my_malloc malloc
#define my_calloc calloc

#endif